package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ProcessStep;
import com.nbsaas.boot.manufacturing.api.domain.simple.ProcessStepSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 工艺步骤-列表对象转换器
*/

public class ProcessStepSimpleConvert implements Converter<ProcessStepSimple, ProcessStep> {




@Override
public ProcessStepSimple convert(ProcessStep source) {
    ProcessStepSimple result = new ProcessStepSimple();

                result.setNote(source.getNote());
                result.setDescription(source.getDescription());
                result.setSetupTime(source.getSetupTime());
                result.setSuccessorSteps(source.getSuccessorSteps());
                result.setEquipmentId(source.getEquipmentId());
                result.setOperationGuide(source.getOperationGuide());
                result.setProcessRouteId(source.getProcessRouteId());
                result.setWorkCenterId(source.getWorkCenterId());
                result.setIsParallel(source.getIsParallel());
                result.setProcessType(source.getProcessType());
                result.setId(source.getId());
                result.setQualityRequirements(source.getQualityRequirements());
                result.setLastDate(source.getLastDate());
                result.setPredecessorSteps(source.getPredecessorSteps());
                result.setStepNo(source.getStepNo());
                result.setRequiredTools(source.getRequiredTools());
                result.setStandardTime(source.getStandardTime());
                result.setIsQualityCheckpoint(source.getIsQualityCheckpoint());
                result.setIsOptional(source.getIsOptional());
                result.setProcessParameters(source.getProcessParameters());
                result.setAddDate(source.getAddDate());
                result.setSequence(source.getSequence());
                result.setUnitCost(source.getUnitCost());
                result.setName(source.getName());
                result.setSafetyNotes(source.getSafetyNotes());
                result.setRequiredMaterials(source.getRequiredMaterials());
                result.setStatus(source.getStatus());


    return result;
}

}